//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.entity;

import java.math.BigDecimal;
import org.come.bean.LoginResult;

public class TeamRole {
	private BigDecimal roleId;
	private String name;
	private BigDecimal speciesId;
	private int grade;
	private int state;

	public TeamRole(LoginResult loginResult) {
		this.roleId = loginResult.getRole_id();
		this.name = loginResult.getRolename();
		this.speciesId = loginResult.getSpecies_id();
		this.grade = loginResult.getGrade();
		this.state = 0;
	}

	public void upTeamRole(TeamRole teamRole) {
		this.name = teamRole.name;
		this.speciesId = teamRole.speciesId;
		this.grade = teamRole.grade;
		this.state = teamRole.state;
	}

	public BigDecimal getRoleId() {
		return this.roleId;
	}

	public void setRoleId(BigDecimal roleId) {
		this.roleId = roleId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getSpeciesId() {
		return this.speciesId;
	}

	public void setSpeciesId(BigDecimal speciesId) {
		this.speciesId = speciesId;
	}

	public int getGrade() {
		return this.grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public int getState() {
		return this.state;
	}

	public void setState(int state) {
		this.state = state;
	}
}
